package impl

import (
	"gitee.com/yangfeng-qiu/restful-api-demo-g7/apps/host"
	"github.com/infraboard/mcube/logger/zap"
	"github.com/infraboard/mcube/logger"
)

var _ host.Service = (*HostServiceImpl)(nil)

func NewHostServiceImpl()*HostServiceImpl{
	return &HostServiceImpl{
		//服务的logger实例
		//封装的zap让其满足logger接口
		//为什么要封装：
			//1.logger全局实例
			//2.logger Level的动态调整
			//3.加入log file轮转功能的集合
		l: zap.L().Named("Host"), 
}
}
type HostServiceImpl struct {
	l  logger.Logger
}
